package cn.iocoder.an.module.mold.service.equipmentkeepsettingtype;

import cn.iocoder.an.framework.common.pojo.PageResult;
import cn.iocoder.an.module.business.controller.admin.equipmentmanage.vo.ImportRespVO;
import cn.iocoder.an.module.mold.controller.admin.equipmentkeepsettingtype.vo.EquipmentKeepSettingTypePageReqVO;
import cn.iocoder.an.module.mold.controller.admin.equipmentkeepsettingtype.vo.EquipmentKeepSettingTypeRespVO;
import cn.iocoder.an.module.mold.controller.admin.equipmentkeepsettingtype.vo.EquipmentKeepSettingTypeSaveReqVO;
import cn.iocoder.an.module.mold.controller.admin.equipmentkeepsettingtype.vo.EquipmentKeepTypeSettingImportExcelVO;
import cn.iocoder.an.module.mold.dal.dataobject.equipmentkeepsettingtype.EquipmentKeepSettingTypeDO;
import jakarta.validation.Valid;

import java.util.List;
import java.util.Map;

/**
 * 保养类型 Service 接口
 *
 * @author zzy
 */
public interface EquipmentKeepSettingTypeService {

    /**
     * 创建保养类型
     *
     * @param createReqVO 创建信息
     * @return 编号
     */
    Long createEquipmentKeepSettingType(@Valid EquipmentKeepSettingTypeSaveReqVO createReqVO);

    /**
     * 更新保养类型
     *
     * @param updateReqVO 更新信息
     */
    void updateEquipmentKeepSettingType(@Valid EquipmentKeepSettingTypeSaveReqVO updateReqVO);

    /**
     * 删除保养类型
     *
     * @param id 编号
     */
    void deleteEquipmentKeepSettingType(Long id);

    /**
    * 批量删除保养类型
    *
    * @param ids 编号
    */
    void deleteEquipmentKeepSettingTypeListByIds(List<Long> ids);

    /**
     * 获得保养类型
     *
     * @param id 编号
     * @return 保养类型
     */
    EquipmentKeepSettingTypeDO getEquipmentKeepSettingType(Long id);

    /**
     * 获得保养类型分页
     *
     * @param pageReqVO 分页查询
     * @return 保养类型分页
     */
    PageResult<EquipmentKeepSettingTypeDO> getEquipmentKeepSettingTypePage(EquipmentKeepSettingTypePageReqVO pageReqVO);


    /**
     * 根据保养类型获取已绑定的和未绑定的
     *
     * @param pageReqVO 查询
     * @return 保养类型
     */
    Map<String, List<EquipmentKeepSettingTypeRespVO>>  getEquipmentKeepSettingTypeMapList(EquipmentKeepSettingTypePageReqVO pageReqVO);


    /**
     * 批量导入
     *
     * @param list     导入数据
     * @param isUpdateSupport 是否支持更新
     * @return 导入结果
     */
    ImportRespVO importList(List<EquipmentKeepTypeSettingImportExcelVO> list, boolean isUpdateSupport);


}